﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ToDoFlowList.aspx.cs" Inherits="JoinParty.admin.ToDoFlow.ToDoFlowList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="PanelGrid" runat="server" />
        <f:Panel ID="PanelGrid" runat="server" BodyPadding="5px"
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch"
            BoxConfigPosition="Start" ShowHeader="false" Title="">
            <Items>
                <f:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
                    ShowBorder="false">
                    <Rows>
                        <f:FormRow ID="FormRow1" runat="server">
                            <Items>
                                <f:TextBox ID="txtUserName" runat="server" Label="姓名" LabelAlign="right" LabelWidth="40px"></f:TextBox>
                                <f:Button Margin="0 0 0 5" ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" Icon="SystemSearch" EnableAjax="true"></f:Button>
                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:Grid ID="dgGrid" BoxFlex="1" runat="server" ShowBorder="true" ShowHeader="false" EnableCheckBoxSelect="true"
                    AllowPaging="true" DataKeyNames="AppllicationID,UserName" OnRowDataBound="Grid1_RowDataBound" IsDatabasePaging="true" OnRowCommand="dgGrid_RowCommand" EnableAjax="true">
                    <Columns>
                        <f:RowNumberField Width="20px" />
                        <f:BoundField ExpandUnusedSpace="true" DataField="BranchName" HeaderText="所属党支部" TextAlign="Center" />
                        <f:WindowField HeaderText="姓名" TextAlign="Left" Width="100px" DataTextField="UserName" WindowID="Dialog"
                            DataIFrameUrlFields="AppllicationID" DataIFrameUrlFormatString="../ApplyJoin/ApplyJoinPartyEdit.aspx?ReadOnly=1&ApplyID={0}" Title="个人信息">
                        </f:WindowField>
                        <f:BoundField Width="80px" DataField="Gender" HeaderText="性别" TextAlign="Center" />
                        <f:BoundField Width="80px" DataField="Nation" HeaderText="民族" TextAlign="Center" />
                        <f:BoundField Width="80px" DataField="NativePlace" HeaderText="籍贯" TextAlign="Center" />
                        <f:BoundField Width="100px" DataField="Educational" HeaderText="文化程度" TextAlign="Center" />
                        <f:BoundField Width="100px" DataField="CreateTime" HeaderText="申请时间" DataFormatString="{0:yyyy-MM-dd}" TextAlign="center" />
                        <f:BoundField Width="250px" HeaderText="当前环节" TextAlign="left" DataField="CurrentStepName"></f:BoundField>
                        <f:LinkButtonField ColumnID="btnReCell" HeaderText="操作" Text="撤回" Hidden="true" TextAlign="Center" ConfirmText="确定要撤回到上一步骤吗？撤回后当前步骤保存的所有操作数据将会清除！" ConfirmTarget="Top" CommandName="lbReCell"></f:LinkButtonField>
                        <f:TemplateField Width="70px" HeaderText="操作" TextAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtnReCell" runat="server" Visible="false" OnClick="lbtnReCell_Click" CommandName='<%#Eval("StandID")+"|"+Eval("AppllicationID") %>' ShowLabel="false" Text="撤回"
                                    OnClientClick="return confirm('确定要撤回到上一步骤吗？撤回后当前步骤保存的所有操作数据将会清除！');">
                                </asp:LinkButton>
                                <f:LinkButton ID="gridFLowOper" runat="server" Text="流程处理" Label='<%#Eval("StandID") %>' ShowLabel="false" Hidden="true"></f:LinkButton>

                            </ItemTemplate>
                        </f:TemplateField>
                        <f:TemplateField HeaderText="批量操作" Width="70px" TextAlign="Center">
                            <ItemTemplate>
                                <f:HyperLink ID="gridBatchOper" runat="server" Hidden="true"></f:HyperLink>
                                <f:LinkButton ID="lbtnBatchOper" runat="server" Hidden="true" Text="操作" Label='<%#Eval("StandID") %>' ShowLabel="false"></f:LinkButton>
                                <f:LinkButton ID="lbtnBatch" runat="server" Hidden="true" OnClick="lbtnBatch_Click" Label='<%#Eval("BranchID")+"|"+Eval("CurrentStepID")+"|"+Eval("StandID") %>' ShowLabel="false"></f:LinkButton>

                            </ItemTemplate>
                        </f:TemplateField>
                        <f:LinkButtonField TextAlign="Center" ConfirmTarget="Top" HeaderText="批量操作" Hidden="true" ColumnID="BatchOperation"></f:LinkButtonField>
                        <f:WindowField ColumnID="FlowView" TextAlign="Center" Icon="Pencil" HeaderText="流程履历"
                            ToolTip="流程履历" WindowID="Dialog"
                            Title="[查看流程]" DataIFrameUrlFields="AppllicationID"
                            DataIFrameUrlFormatString="ShowFlowStep.aspx?AppllicationID={0}"
                            Width="70px" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>

        <f:Window ID="Dialog" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="700px" Height="600px" OnClose="Dialog_Close">
        </f:Window>
        <f:Window ID="DialogMeeting" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="750px" Height="600px" OnClose="Dialog_Close">
        </f:Window>
        <f:Window ID="DialogMeetingStep" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="750px" Height="650px" OnClose="Dialog_Close">
        </f:Window>
        <f:Window ID="DialogKaoCaBiao" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="750px" Height="535px" OnClose="Dialog_Close">
        </f:Window>
        <f:Window ID="WJoinStep7" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="850px" Height="600px" OnClose="Dialog_Close">
        </f:Window>
        <f:Window ID="WJoinStep8" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="800px" Height="600px" OnClose="Dialog_Close">
        </f:Window>
        <f:Window ID="WShangBao2" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="800px" Height="600px" OnClose="Dialog_Close">
        </f:Window>
        <f:Window ID="wStep19" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="800px" Height="600px" OnClose="Dialog_Close">
        </f:Window>
    </form>
</body>
</html>
